from django.http import HttpResponse
 
from gather.models import Test
 
# 数据库操作
def testdb(request):
    test1 = Test(name='testname')
    test1.save()
    return HttpResponse("<p>数据添加成功！</p>")